package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 商品sku表
    */
@ApiModel(value="com-example-springbootdemo-entity-ProductSku")
@TableName(value = "product_sku")
public class ProductSku {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value="商品id")
    private Long productId;

    /**
     * 品牌id
     */
    @TableField(value = "brand_id")
    @ApiModelProperty(value="品牌id")
    private Long brandId;

    /**
     * 标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="标题")
    private String title;

    /**
     * 副标题(吸引人的信息)
     */
    @TableField(value = "sub_title")
    @ApiModelProperty(value="副标题(吸引人的信息)")
    private String subTitle;

    /**
     * 封面
     */
    @TableField(value = "cover")
    @ApiModelProperty(value="封面")
    private String cover;

    /**
     * 条码
     */
    @TableField(value = "inner_sn")
    @ApiModelProperty(value="条码")
    private String innerSn;

    /**
     * 第三方条码
     */
    @TableField(value = "outer_sn")
    @ApiModelProperty(value="第三方条码")
    private String outerSn;

    /**
     * 规格
     */
    @TableField(value = "standard")
    @ApiModelProperty(value="规格")
    private String standard;

    /**
     * 售价
     */
    @TableField(value = "price")
    @ApiModelProperty(value="售价")
    private BigDecimal price;

    /**
     * 建议零售价
     */
    @TableField(value = "sale_price")
    @ApiModelProperty(value="建议零售价")
    private BigDecimal salePrice;

    /**
     * 成本价
     */
    @TableField(value = "cost_price")
    @ApiModelProperty(value="成本价")
    private BigDecimal costPrice;

    /**
     * 可分红金额
     */
    @TableField(value = "share_price")
    @ApiModelProperty(value="可分红金额")
    private BigDecimal sharePrice;

    /**
     * 库存
     */
    @TableField(value = "stock")
    @ApiModelProperty(value="库存")
    private Integer stock;

    /**
     * 冻结库存
     */
    @TableField(value = "freeze_stock")
    @ApiModelProperty(value="冻结库存")
    private Integer freezeStock;

    @TableField(value = "status")
    @ApiModelProperty(value="")
    private Byte status;

    /**
     * 后台sku排序
     */
    @TableField(value = "back_sort")
    @ApiModelProperty(value="后台sku排序")
    private Byte backSort;

    @TableField(value = "creator")
    @ApiModelProperty(value="")
    private String creator;

    /**
     * 供应商id
     */
    @TableField(value = "supplier_id")
    @ApiModelProperty(value="供应商id")
    private Long supplierId;

    @TableField(value = "modifier")
    @ApiModelProperty(value="")
    private String modifier;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    @TableField(value = "gmt_delete")
    @ApiModelProperty(value="")
    private Date gmtDelete;

    /**
     * 是否删除，1被删除，0未删除
     */
    @TableField(value = "is_deleted")
    @ApiModelProperty(value="是否删除，1被删除，0未删除")
    private Byte isDeleted;

    public static final String COL_ID = "id";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_TITLE = "title";

    public static final String COL_SUB_TITLE = "sub_title";

    public static final String COL_COVER = "cover";

    public static final String COL_INNER_SN = "inner_sn";

    public static final String COL_OUTER_SN = "outer_sn";

    public static final String COL_STANDARD = "standard";

    public static final String COL_PRICE = "price";

    public static final String COL_SALE_PRICE = "sale_price";

    public static final String COL_COST_PRICE = "cost_price";

    public static final String COL_SHARE_PRICE = "share_price";

    public static final String COL_STOCK = "stock";

    public static final String COL_FREEZE_STOCK = "freeze_stock";

    public static final String COL_STATUS = "status";

    public static final String COL_BACK_SORT = "back_sort";

    public static final String COL_CREATOR = "creator";

    public static final String COL_SUPPLIER_ID = "supplier_id";

    public static final String COL_MODIFIER = "modifier";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    public static final String COL_GMT_DELETE = "gmt_delete";

    public static final String COL_IS_DELETED = "is_deleted";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取商品id
     *
     * @return product_id - 商品id
     */
    public Long getProductId() {
        return productId;
    }

    /**
     * 设置商品id
     *
     * @param productId 商品id
     */
    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * 获取品牌id
     *
     * @return brand_id - 品牌id
     */
    public Long getBrandId() {
        return brandId;
    }

    /**
     * 设置品牌id
     *
     * @param brandId 品牌id
     */
    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    /**
     * 获取标题
     *
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取副标题(吸引人的信息)
     *
     * @return sub_title - 副标题(吸引人的信息)
     */
    public String getSubTitle() {
        return subTitle;
    }

    /**
     * 设置副标题(吸引人的信息)
     *
     * @param subTitle 副标题(吸引人的信息)
     */
    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    /**
     * 获取封面
     *
     * @return cover - 封面
     */
    public String getCover() {
        return cover;
    }

    /**
     * 设置封面
     *
     * @param cover 封面
     */
    public void setCover(String cover) {
        this.cover = cover;
    }

    /**
     * 获取条码
     *
     * @return inner_sn - 条码
     */
    public String getInnerSn() {
        return innerSn;
    }

    /**
     * 设置条码
     *
     * @param innerSn 条码
     */
    public void setInnerSn(String innerSn) {
        this.innerSn = innerSn;
    }

    /**
     * 获取第三方条码
     *
     * @return outer_sn - 第三方条码
     */
    public String getOuterSn() {
        return outerSn;
    }

    /**
     * 设置第三方条码
     *
     * @param outerSn 第三方条码
     */
    public void setOuterSn(String outerSn) {
        this.outerSn = outerSn;
    }

    /**
     * 获取规格
     *
     * @return standard - 规格
     */
    public String getStandard() {
        return standard;
    }

    /**
     * 设置规格
     *
     * @param standard 规格
     */
    public void setStandard(String standard) {
        this.standard = standard;
    }

    /**
     * 获取售价
     *
     * @return price - 售价
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置售价
     *
     * @param price 售价
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取建议零售价
     *
     * @return sale_price - 建议零售价
     */
    public BigDecimal getSalePrice() {
        return salePrice;
    }

    /**
     * 设置建议零售价
     *
     * @param salePrice 建议零售价
     */
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    /**
     * 获取成本价
     *
     * @return cost_price - 成本价
     */
    public BigDecimal getCostPrice() {
        return costPrice;
    }

    /**
     * 设置成本价
     *
     * @param costPrice 成本价
     */
    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    /**
     * 获取可分红金额
     *
     * @return share_price - 可分红金额
     */
    public BigDecimal getSharePrice() {
        return sharePrice;
    }

    /**
     * 设置可分红金额
     *
     * @param sharePrice 可分红金额
     */
    public void setSharePrice(BigDecimal sharePrice) {
        this.sharePrice = sharePrice;
    }

    /**
     * 获取库存
     *
     * @return stock - 库存
     */
    public Integer getStock() {
        return stock;
    }

    /**
     * 设置库存
     *
     * @param stock 库存
     */
    public void setStock(Integer stock) {
        this.stock = stock;
    }

    /**
     * 获取冻结库存
     *
     * @return freeze_stock - 冻结库存
     */
    public Integer getFreezeStock() {
        return freezeStock;
    }

    /**
     * 设置冻结库存
     *
     * @param freezeStock 冻结库存
     */
    public void setFreezeStock(Integer freezeStock) {
        this.freezeStock = freezeStock;
    }

    /**
     * @return status
     */
    public Byte getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Byte status) {
        this.status = status;
    }

    /**
     * 获取后台sku排序
     *
     * @return back_sort - 后台sku排序
     */
    public Byte getBackSort() {
        return backSort;
    }

    /**
     * 设置后台sku排序
     *
     * @param backSort 后台sku排序
     */
    public void setBackSort(Byte backSort) {
        this.backSort = backSort;
    }

    /**
     * @return creator
     */
    public String getCreator() {
        return creator;
    }

    /**
     * @param creator
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 获取供应商id
     *
     * @return supplier_id - 供应商id
     */
    public Long getSupplierId() {
        return supplierId;
    }

    /**
     * 设置供应商id
     *
     * @param supplierId 供应商id
     */
    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * @return modifier
     */
    public String getModifier() {
        return modifier;
    }

    /**
     * @param modifier
     */
    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    /**
     * @return gmt_delete
     */
    public Date getGmtDelete() {
        return gmtDelete;
    }

    /**
     * @param gmtDelete
     */
    public void setGmtDelete(Date gmtDelete) {
        this.gmtDelete = gmtDelete;
    }

    /**
     * 获取是否删除，1被删除，0未删除
     *
     * @return is_deleted - 是否删除，1被删除，0未删除
     */
    public Byte getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置是否删除，1被删除，0未删除
     *
     * @param isDeleted 是否删除，1被删除，0未删除
     */
    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }
}